import service from '@/utils/request'
export const getDepartmentMsgAPI = () => {
  return service.get('/company/department')
}

export const getManagerList = () => {
  return service.get('/sys/user/simple')
}

export const addDeptAPI = (data) => {
  return service.post('/company/department', data)
}

export const getDeptDetailAPI = (id) => {
  return service.get(`/company/department/${id}`)
}

export const updateDeptDetailAPI = (data) => {
  return service.put(`/company/department/${data.id}`, data)
}

export const deleteDeptDetailAPI = (id) => {
  return service.delete(`/company/department/${id}`)
}
